package com.erms.lab.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.erms.lab.mapper.LabMajorFiveMapper;
import com.erms.lab.domain.LabMajorFive;
import com.erms.lab.service.ILabMajorFiveService;
import com.erms.common.core.text.Convert;

/**
 * 专业机房五Service业务层处理
 * 
 * @author smile
 * @date 2020-05-04
 */
@Service
public class LabMajorFiveServiceImpl implements ILabMajorFiveService 
{
    @Autowired
    private LabMajorFiveMapper labMajorFiveMapper;

    /**
     * 查询专业机房五
     * 
     * @param equipId 专业机房五ID
     * @return 专业机房五
     */
    @Override
    public LabMajorFive selectLabMajorFiveById(Long equipId)
    {
        return labMajorFiveMapper.selectLabMajorFiveById(equipId);
    }

    /**
     * 查询专业机房五列表
     * 
     * @param labMajorFive 专业机房五
     * @return 专业机房五
     */
    @Override
    public List<LabMajorFive> selectLabMajorFiveList(LabMajorFive labMajorFive)
    {
        return labMajorFiveMapper.selectLabMajorFiveList(labMajorFive);
    }

    /**
     * 新增专业机房五
     * 
     * @param labMajorFive 专业机房五
     * @return 结果
     */
    @Override
    public int insertLabMajorFive(LabMajorFive labMajorFive)
    {
        return labMajorFiveMapper.insertLabMajorFive(labMajorFive);
    }

    /**
     * 修改专业机房五
     * 
     * @param labMajorFive 专业机房五
     * @return 结果
     */
    @Override
    public int updateLabMajorFive(LabMajorFive labMajorFive)
    {
        return labMajorFiveMapper.updateLabMajorFive(labMajorFive);
    }

    /**
     * 删除专业机房五对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteLabMajorFiveByIds(String ids)
    {
        return labMajorFiveMapper.deleteLabMajorFiveByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除专业机房五信息
     * 
     * @param equipId 专业机房五ID
     * @return 结果
     */
    @Override
    public int deleteLabMajorFiveById(Long equipId)
    {
        return labMajorFiveMapper.deleteLabMajorFiveById(equipId);
    }
}
